Optimal. Leaf size=250 \[ -\frac {(15 A-11 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(147 A-95 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{30 a d \sqrt {a+a \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.46, antiderivative size = 250, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4105, 4107,
4098, 3893, 212} \begin {gather*} -\frac {(15 A-11 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}+\frac {(147 A-95 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{30 a d \sqrt {a \sec (c+d x)+a}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3893
Rule 4098
Rule 4105
Rule 4107
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}} \, dx &=-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {\int \frac {\frac {1}{2} a (9 A-5 B)-3 a (A-B) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{2 a^2}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\int \frac {-\frac {1}{4} a^2 (39 A-35 B)+a^2 (9 A-5 B) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{5 a^3}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 \int \frac {\frac {1}{8} a^3 (147 A-95 B)-\frac {1}{4} a^3 (39 A-35 B) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{15 a^4}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(147 A-95 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{30 a d \sqrt {a+a \sec (c+d x)}}-\frac {(15 A-11 B) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx}{4 a}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(147 A-95 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{30 a d \sqrt {a+a \sec (c+d x)}}+\frac {(15 A-11 B) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{2 a d}\\ &=-\frac {(15 A-11 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(A-B) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A-5 B) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(39 A-35 B) \sin (c+d x)}{30 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(147 A-95 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{30 a d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.43, size = 171, normalized size = 0.68 \begin {gather*} \frac {\sec (c+d x) \left ((141 A-85 B+3 (39 A-20 B) \cos (c+d x)+(-6 A+10 B) \cos (2 (c+d x))+3 A \cos (3 (c+d x))) \sqrt {\sec (c+d x)} \sin (c+d x)+\frac {15 \sqrt {2} (15 A-11 B) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \cos ^2\left (\frac {1}{2} (c+d x)\right ) \tan (c+d x)}{\sqrt {1-\sec (c+d x)}}\right )}{30 d (a (1+\sec (c+d x)))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 8.28, size = 339, normalized size = 1.36
method | result | size |
default | \(\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right ) \left (24 A \left (\cos ^{4}\left (d x +c \right )\right )-225 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right )+165 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right )-48 A \left (\cos ^{3}\left (d x +c \right )\right )-225 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, A \sin \left (d x +c \right )+40 B \left (\cos ^{3}\left (d x +c \right )\right )+165 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, B \sin \left (d x +c \right )+240 A \left (\cos ^{2}\left (d x +c \right )\right )-160 B \left (\cos ^{2}\left (d x +c \right )\right )+78 A \cos \left (d x +c \right )-70 B \cos \left (d x +c \right )-294 A +190 B \right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \left (\cos ^{3}\left (d x +c \right )\right )}{60 d \sin \left (d x +c \right )^{3} a^{2}}\) | \(339\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.09, size = 500, normalized size = 2.00 \begin {gather*} \left [-\frac {15 \, \sqrt {2} {\left ({\left (15 \, A - 11 \, B\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (15 \, A - 11 \, B\right )} \cos \left (d x + c\right ) + 15 \, A - 11 \, B\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - \frac {4 \, {\left (12 \, A \cos \left (d x + c\right )^{4} - 4 \, {\left (3 \, A - 5 \, B\right )} \cos \left (d x + c\right )^{3} + 12 \, {\left (9 \, A - 5 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (147 \, A - 95 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{120 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}}, \frac {15 \, \sqrt {2} {\left ({\left (15 \, A - 11 \, B\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (15 \, A - 11 \, B\right )} \cos \left (d x + c\right ) + 15 \, A - 11 \, B\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )}}{a \sin \left (d x + c\right )}\right ) + \frac {2 \, {\left (12 \, A \cos \left (d x + c\right )^{4} - 4 \, {\left (3 \, A - 5 \, B\right )} \cos \left (d x + c\right )^{3} + 12 \, {\left (9 \, A - 5 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (147 \, A - 95 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{60 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________